﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Configuration;
using Jhecis.Service;
using System.IO;

namespace Jhecis.Service
{
    public static class CDRHelper
    {
        private static string NullValue = "";
      
        #region 调用webService

        public static string SendXml(string MainXml)
        {
            string strMethodName = "DocumentRegister";
            try
            {
                HIPService HIPMessageServer = new HIPService();
                string strResult = HIPMessageServer.HIPMessageServer(strMethodName, MainXml);
                LogHelper.Instance.WriteInfo("上传完成。");
            }
            catch (Exception ex)
            {
                LogHelper.Instance.WriteInfo("上传异常：\r\n");
                LogHelper.Instance.WriteError(String.Format("{0}\t{1}\n{2}", DateTime.Now, ex.StackTrace, ex.Message));
            }
            return "1";
        }
        #endregion
    }
}
